﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using FCMS.Mvc;

namespace FCMS.Mvc
{
    [AdminAuthorize(IsVerify = true)]
    public abstract class AdminBaseController : BaseController
    {
        private static AdminViewEngine currentViewEngine;
        private static object lockObject = new object();

        public AdminBaseController()
        {
            if (currentViewEngine == null)
            {
                lock (lockObject)
                {
                    if (currentViewEngine == null)
                    {
                        currentViewEngine = new AdminViewEngine();
                        SkinManager.LoadViewEngine<AdminViewEngine>(currentViewEngine);
                    }
                }
            }
        }
    }
}
